<?php
namespace app\api\controller;

use app\api\model\RecomModel;
use think\Controller;

class Recom extends Controller
{
     function  recomlist(){
         $model=new  RecomModel();
         $result = $model->recomlist();
         return json($result);

     }
     function  recomdetail(){
         $recommentid=input('get.recommentid');
         $model=new  RecomModel();
         $result = $model->recomdetail($recommentid);
        if ($result){
            return json($result);
        }
     }
}